/**
 * Free software.
 */

package org.nanhill.moo.domain.search.favor;

import org.nanhill.commons.pattern.search.SearchException;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-11-5
 */
public class FavorCostIdCriterion extends FavorCriterion {
	private long costId;

	public FavorCostIdCriterion(long costId) {
		super();
		this.costId = costId;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.commons.pattern.search.SearchCriterion#accept(org.nanhill.commons.pattern.search.SearchVisitor)
	 */
	public void accept(FavorVisitor visitor) throws SearchException {
		visitor.visitCostId(this);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.commons.pattern.search.SearchCriterion#getDisplay()
	 */
	public String getDisplay() {
		return "Favor Cost Id";
	}

	public Long getValue() {
		return costId;
	}

}
